package com.tools.bitbucket.config;

import com.tools.bitbucket.pojo.BitbucketProject;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "bitbucket")
@Data
public class BitbucketConfig {
    // bitbucket server url
    private String baseUrl;
    // 管理员访问凭证
    private String adminToken;
    // 备份路径
    private String backUpPath;
    //需要备份的仓库以及项目配置
    private List<BitbucketProject> backUpProjects;
    //跳过的仓库以及项目
    private List<BitbucketProject> ignoreProjects;
}
